<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style/css/head.css" />
<script type="text/javascript" src="../style/js/user.js"></script>
<script type="text/javascript" src="../style/js/book.js"></script>
<script type="text/javascript" src="../style/js/jquery.js"></script>
<script type="text/javascript">
	$(function() {
		loginIsFalseOrTrue();
		document.getElementById("shopTitle");
		if(document.title!="HOME"){
			document.getElementById("shopTitle").setAttribute("href","shoppingcart.jsp");
			document.getElementById("logo").setAttribute("src","../style/img/logo.jpg");
		}
	});
</script>
<title>Home</title>
</head>
<body onload="load()">
<div id="head">
	<div class="title">
		<ul>
			<li><a id="linkLogin" href="login.jsp">登陆</a></li>
			<li><a id="linkRegist" href="regist.jsp">注册</a></li>
			<li><a id="linkOrders" href="login.jsp">我的订单</a></li>
			<li><a href="#">我的小屋</a></li>
		</ul>
	</div>
	<div class="logo-search">
		<h1><img id="logo" src="style/img/logo.jpg"></h1>
		<div class="search">
			<input type="text" id="txt-search" name="search-books" onkeydown="if(event.keyCode == 13){search();}" />
			<input type="submit" id="button-search" value="搜书"  onclick="search()"/>
		</div>
		<div class="myBookShop">
			<a id="shopTitle" class="shopTitle" href="pages/shoppingcart.jsp" onmouseout="myBookMouseOut()" onmouseover="showShoppingList(),myBookMouseOver()">我的购物车</a>
			<div id="list" class="list" onmouseout="shoppingLisOut()">
			<div class="border"></div>
				<!-- js重绘table -->
				<div id="nodata" class="nodata">购物车无商品</div>
				<table class="myBookShopTable" id="myBookShopTable"></table>
			</div>
		</div>
	</div>
	<div class="nav">
		<ul>
			<li><a class="first" href="#">全部商品分类</a></li>
			<li><a id="linkIndex" href="../index.jsp">图书首页</a></li>
			<li><a href="#">电子书</a></li>
			<li><a href="#">在线读书</a></li>
			<li><a href="#">预售专区</a></li>
			<li><a href="#">特色书店</a></li>
			<li><a href="#">文化用品</a></li>
			<li><a href="#">图书社区</a></li>
			<li><a href="#">团购</a></li>
		</ul>
	</div>
</div>
</body>
</html>
